﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Chapter14.Code01.Code01
{
    public class Demo
    {
        public static void Begin()
        {
            {
                Curry tastCurry = new Curry();
                tastCurry.MainIngredient = "panir tikka";
                tastCurry.Style = "jalfrezi";
                tastCurry.Spiciness = 8;
            }
            {
                Curry tastyCurry = new Curry("panir tikka", "jalfrezi", 8);
            }
            {
                Curry tastyCurry = new Curry
                {
                    MainIngredient = "panir tikka",
                    Style = "jalfrezi",
                    Spiciness = 8
                };
            }
            {
                Curry tastyCurry = new Curry
                {
                    MainIngredient = "panir tikka",
                    Style = "jalfrezi",
                    Spiciness = 8,
                    Origin = new Restaurant
                    {
                        Name = "King's Balti",
                        Location = "York Road",
                        Rating = 5
                    }
                };
            }
        }
    }
}
